Repository navigation
fix(acp): let ACP clients answer permission requests instead of always selecting the first option (#5480) - #6265
Conversation
…s selecting the first option (OpenHands#5480) Add PermissionMode enum (AUTO / ASK) and an optional permission_callback to _OpenHandsACPBridge. Default remains AUTO (returns options[0]) so existing headless runs see zero behaviour change. ASK mode with a registered callback routes the choice to a human-facing front end; without a callback ASK falls back to AUTO so enabling the mode cannot deadlock a bridge. Co-authored-by: openhands <openhands@all-hands.dev>
|
📁 PR Artifacts Notice This PR contains a |
|
Hi, the \Validate PR description\ check is failing because the linked issue needs a |
|
Hey team! @OpenHands/maintainers 👋 All green here, no conflicts, rebased on latest main. Could someone review when you get a chance? Thanks! |
|
Thanks for picking this up, @LeonxLJX. Are you aiming for an in-process SDK hook or the agent-server approval flow? The bridge callback could be a starting point for an in-process Python API (if exposed on On the current diff regardless of direction:
The fallback path keeps |
HUMAN:
Contributed backend SDK fix addressing issue 5480. Summary below.
AGENT:
Why
See issue 5480.
Summary
Issue Number
Addresses issue 5480. Required tracking: #6840
How to Test
Per issue reproduction steps.
Video/Screenshots
Backend SDK change - logs/tests suffice.
Type
Notes
Scope: targeted fix for issue 5480. Backend-only change.
Jev-Fast-Audit
⚡ Jev fast audit · estimates · 0.26s · commit d67e879
Strongest signal: No primary concern selected.
Evidence: No primary concern to locate.
Coverage: complete supplied coverage; 4/4 hunks, 1/1 files.
All estimates and evidence